<?php
class Invoice_model extends CI_Model
{
	function __construct()
	{
		parent::__construct();
	}
	
	function GetInvoiceBetweenStartDates($startStartDate,$endStartDate)
	{
		$sqlCommand='select * from bokning left join bil on bokning.BilID=bil.ID left join kund on bokning.KundID=kund.ID where bokning.startTid>=? and bokning.startTid<=?';
		$result=$this->db->query($sqlCommand,array($startStartDate,$endStartDate));
		
		if($result->num_rows()>=1)
		{
			return $result;
		}
		else
		{
			return FALSE;
		}
		
	}
}
